package com.example.stream.controller;

import com.example.stream.service.MessageService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/message")
public class MessageController {

    @Resource
    private MessageService messageService;

    @GetMapping(value = "/sendMail")
    public void sendMail() {
        messageService.sendMail();
    }

    @GetMapping(value = "/sendMsg")
    public void sendMsg() {
        messageService.sendMsg();
    }
}
